﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Employee
{
    abstract class Employee
    {
        protected string name;

        protected string Name
        {
            get
            {
                return name;
            }
            set
            {
                if (String.IsNullOrWhiteSpace(value))
                    throw new ArgumentNullException("Name is empty");
                name = value;
            }
        }

        public Employee(string name)
        {
            Name = name;
        }

        public abstract void CalculateSalary();

        public abstract void PrintToConsole();

    }
}
